/********************************************************************
	created:		2009:1:14   21:22
	filename: 	parser.h
	author:		kong
	E-mail:		guoqing.kong@gmail.com
	purpose:	parser
*********************************************************************/
#pragma once

#include <string>
#include <vector>
using namespace std;

class AbstractParser
{
public:
	AbstractParser(void){};
	virtual ~AbstractParser(void){}  ;
	virtual int parser(string content ,vector<string>& rc ,string url ,string fn) =0;
};


class Parser_58com :public AbstractParser
{
public:
	Parser_58com(void);
	~Parser_58com(void);
public:
	int parser(string content, vector<string>& rc ,string url ,string fn);
private:
	bool execTidy(string fn);
	bool bingoTable(string sources);

private:
	string htmlTable;
	string xmlTable;
};

